package com.watercube.service.base;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.watercube.dao.entity.Client;
import com.watercube.dao.entity.ClientExample;
import com.watercube.dao.mapper.ClientMapper;
import com.watercube.service.base.impl.BaseServiceImpl;

@Service("testClientService")
public class ClientServiceImpl extends BaseServiceImpl<Client, String, ClientExample> implements ClientService {

	private ClientMapper clientMapper;

	@Autowired
	public void setClientMapper(ClientMapper clientMapper) {
		this.clientMapper = clientMapper;
		super.setBaseDao(clientMapper);
	}

	@Override
	public Client getById(String clientId) {
		return clientMapper.getById(clientId);
	}

}
